# name : Rmd slidy head
# key : rmd.slidy.head
# contributor: Shuguang Sun
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil))
# --
---
title: "${1:title}"
author: "Shuguang Sun"
date: "\`r Sys.Date()\`"
output:
  slidy_presentation:
    font_adjustment: -1
    duration: 45
    footer: "Copyright (c) 2022, Shuguang Sun"
    incremental: true
    widescreen: true
    smaller: true
    transition: slower
---

\`\`\`{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
## other setup, for example, libraries
\`\`\`

$0
# In the morning

## Getting up | What I like to do first thing

subtitle

- Turn off alarm
- Get out of bed

## Breakfast {.smaller}

- Eat eggs
- Drink coffee

# In the evening

## Dinner {.build}

- Eat spaghetti
- Drink wine

---

```{r, cars, fig.cap="A scatterplot.", echo=FALSE}
plot(cars)
```

## Going to sleep {.smaller .build}

- Get in bed
- Count sheep

## Going to sleep {data-background=foo.png data-background-size=cover}

- Get in bed
- Count sheep

## Going to sleep {.flexbox .vcenter}

- Get in bed
- Count sheep
